package com.bwie.mapper;

import com.bwie.common.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @className: UserMapper
 * @Description: TODO
 * @version: v1.８.0
 * @author: 李明
 * @date: 2025/10/22 9:51
 */
@Mapper
public interface UserMapper {

    /**
     * 根据用户名称和密码查询该用户是否存在
     */
    User getUserInfo(@Param("username") String username);

    /**
     * 根据手机号查询用户信息
     * @param phone
     */
    User getUserByPhone(@Param("phone") String phone);

    /**
     * 注册用户
     * @param user
     */
    void addUserInfo(User user);
}
